package com.jungle.app.domain.entity;

import com.jungle.pojo.BaseEntity;
import lombok.Data;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@Entity
@Table(name ="jw_route")
@org.hibernate.annotations.Table(appliesTo = "jw_route", comment = "路线表")
@Where(clause = "deleted is null or deleted != true")
@SQLDelete(sql = "update jw_route set deleted = true where id = ? ")
public class JwRoute extends BaseEntity {
    @Column(name = "name")
    @Comment("名称")
    private String name;
    @Column(name = "way")
    @Comment("途经景点")
    private String way;
    @Column(name = "price")
    @Comment("价格")
    private String price;
    @Column(name = "setDate")
    @Comment("日期")
    private String setDate;
}
